package Servidor.Modelo.Users;

import BaseDatos.FachadaBBDD;


/**
 * @author Angel
 */
public class User {
    private int id_user;
    private String nick;
    private String pass;
    private String email;
    private int type_user;
    
    public User(){
        id_user = -1;
        nick = "default nick";
        pass = "default pass";
        email = "default email";
        type_user = -1;
        
    }

    public User(String nick, String pass, String email, int type_user) {
        this();
        this.nick = nick;
        this.pass = pass;
        this.email = email;
        this.type_user = type_user;
        id_user = FachadaBBDD.get_instance().insert_user(nick, pass, email, type_user);
    }
    
   public User(int id_user, String nick, String pass, String email, int type_user) {
        this();
        this.id_user = id_user;
        this.nick = nick;
        this.pass = pass;
        this.email = email;
        this.type_user = type_user;
        
    }
    

    public String getEmail() {
        return email;
    }

    public int getId_user() {
        return id_user;
    }

    public String getNick() {
        return nick;
    }

    public String getPass() {
        return pass;
    }

    public int getType_user() {
        return type_user;
    }

    public void setId_user(int id_user) {
        this.id_user = id_user;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public void setNick(String nick) {
        this.nick = nick;
    }

    public void setPass(String pass) {
        this.pass = pass;
    }

    public void setType_user(int type_user) {
        this.type_user = type_user;
    }
    
    
    
}
